<?php
function en2fa($input){
	$a = array(1,2,3,4,5,6,7,8,9,0);
	$b = array("۱","۲","۳","۴","۵","۶","۷","۸","۹","۰");
	$result = str_replace($a,$b,$input);
	return $result;
}
?>
